package studio.wetrack.dinner.domain;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.util.List;

/**
 * Created by zhanghong on 17/7/22.
 */
@Data
@Entity(name = "dinner_table")
public class Table {
    @Id
    long id;
    String code;
    int capacity;

    @Transient
    List<Dish> dishList;


    @Override
    public String toString() {
        return "Table{" +
                "id=" + id +
                ", code='" + code + '\'' +
                ", capacity=" + capacity +
                '}';
    }
}
